import pandas as pd
import matplotlib.pyplot as plt
import seaborn as sns

# 读取数据集
df = pd.read_csv('F:/projdvn/car_prices_conversion.csv')

# 选择数值列
num_cols = ['year', 'condition', 'odometer','mmr','sellingprice']

# 绘制箱线图
plt.figure(figsize=(15, 10))
for i, col in enumerate(num_cols):
    plt.subplot(2, 3, i + 1)
    sns.boxplot(data=df, x=col)
    plt.title(col)
plt.tight_layout()
plt.show()